package day20170930;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.IOException;

/**
 * Created by 14394 on 2017/9/30.
 */
public class TestJsoup {
    public static void main(String[] args) throws IOException {
        Document d=Jsoup.connect("http://www.qq.com/").get();
        //System.out.println(d.select("div"));
        //System.out.println(d.select("#pronav"));
        //System.out.println(d.select(".layoutLeft"));
        //System.out.println(d.select("[href]"));
        //System.out.println(d.select("[^data]"));
        //System.out.println(d.select("[wigth=500]"));
        //System.out.println(d.select("[wigth=500]"));
        //System.out.println(d.select("[class^=video]"));
        //System.out.println(d.select("[class$=video]"));
        //System.out.println(d.select("[class*=video]"));
        //System.out.println(d.select("[href~=]"));
        //System.out.println(d.select("*"));
        //System.out.println(d.select("div#newsMoreBtn"));
        //System.out.println(d.select("div.ft fl"));
        //System.out.println(d.select("div#today"));
        //System.out.println(d.select("a[href]"));
        //System.out.println(d.select("form input:eq(1)"));
        //System.out.println(d.select("div:has(p)"));
        //System.out.println(d.select("div:not(.logo)"));
        //System.out.println(d.select("p:contains(qq)"));
        //System.out.println(d.select("p:containsOwn(qq)"));
        //System.out.println(d.select("div:matches((?!)login)"));
        //System.out.println(d.select("div:matchesOwn()"));  //使用正则表达式找出自身的文本
        //System.out.println(d.select("img[]"));

    }
}
